﻿using System;

class BiggestInteger
{
    static void Main()
    {
        //Exercise 3.
        //Write a program that finds the biggest of three integers using nested if statements.

        Console.Write("Enter the first number:  ");
        int first = int.Parse(Console.ReadLine());
        Console.Write("Enter the second number:  ");
        int second = int.Parse(Console.ReadLine());
        Console.Write("Enter the third number:  ");
        int third = int.Parse(Console.ReadLine());
        Console.WriteLine();

        if (first > second && first > third)
        {
            Console.WriteLine("The biggest integer is {0}.", first);
        }
        else
        {
            if (second > first && second > third)
            {
                Console.WriteLine("The biggest integer is {0}.", second);
            }
            else
            {
                Console.WriteLine("The biggest integer is {0}.", third);
            }
        }
        Console.WriteLine();
    }
}

